package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.MerchantPayChannel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface MerchantPayChannelDao extends JpaRepository<MerchantPayChannel,Integer>, JpaSpecificationExecutor<MerchantPayChannel> {
    MerchantPayChannel findOneById(int id);
    Page<MerchantPayChannel> findByMerchantId(int merchantId, Pageable pageable);
}
